#include "AnalysisLayout.h"
#include <QToolButton>
#include <QFile>
#include <QLabel>

AnalysisLayout::AnalysisLayout()
{

}



AnalysisLayout::AnalysisLayout(
    QHBoxLayout* widget)
{
    widget->addLayout(this);
    widget->addSpacing(100);
    this->add_sub_widget();

    QLabel* lab = new QLabel;
    lab->setMaximumWidth(1);
    lab->setMaximumHeight(200);
    lab->setFrameShape (QFrame::Box);
    lab->setStyleSheet("border-width: 1px;border-style: solid;border-color: rgb(0, 0, 0);");
    widget->addWidget(lab);
}



AnalysisLayout::~AnalysisLayout()
{}



void
AnalysisLayout::add_sub_widget()
{
    QToolButton* analysis_orbit = new QToolButton;

    //file_new->setIconSize(QSize(50,50));
    analysis_orbit->setIcon(QIcon(":/resource/image/orbit.png"));
    analysis_orbit->setToolTip(QGridLayout::tr ("轨道分析"));
    this->addWidget(analysis_orbit,0,0);


    QToolButton* analysis_covert = new QToolButton;
    analysis_covert->setIcon(QIcon(":/resource/image/covert.png"));
    analysis_covert->setToolTip(QGridLayout::tr ("覆盖分析"));
    this->addWidget(analysis_covert,1,0);


    QToolButton* analysis_contect = new QToolButton;
    analysis_contect->setIcon(QIcon(":/resource/image/contect.png"));
    analysis_contect->setToolTip(QGridLayout::tr ("通信分析"));
    this->addWidget(analysis_contect,2,0);

    QToolButton* analysis_see = new QToolButton;
    analysis_see->setIcon(QIcon(":/resource/image/see.png"));
    analysis_see->setToolTip(QGridLayout::tr ("可见分析"));
    this->addWidget(analysis_see,3,0);

 }
